package com.goktech.olala.server.pojo.goods;

import java.util.Date;
import java.util.List;

/**
 * 商品按级分类集合
 * ParentCategory类继承Category，并多添加了List<ParentCategory>
 * List<ParentCategory>用来放该分类的下一级分类内容
 *
 * @author wjs
 */
public class ParentCategory extends Category {
    private List<ParentCategory> childList;

    private List<GoodsBrand> brandList;

    public ParentCategory() {
    }

    public ParentCategory(List<ParentCategory> childList, List<GoodsBrand> brandList) {
        this.childList = childList;
        this.brandList = brandList;
    }

    public ParentCategory(Integer categoryId, String categoryName, String parentId, String keywords, String catyDesc, Integer sortOrl, Integer isShowInNav, Byte grade, String filterAttr, Integer isShow, Integer isEnabled, Date createTime, String createBy, Date updateTime, String updateBy, List<ParentCategory> childList, List<GoodsBrand> brandList) {
        super(categoryId, categoryName, parentId, keywords, catyDesc, sortOrl, isShowInNav, grade, filterAttr, isShow, isEnabled, createTime, createBy, updateTime, updateBy);
        this.childList = childList;
        this.brandList = brandList;
    }

    @Override
    public String toString() {
        return "ParentCategory{" +
                "childList=" + childList +
                ", brandList=" + brandList +
                ", categoryId=" + categoryId +
                ", categoryName='" + categoryName + '\'' +
                ", parentId='" + parentId + '\'' +
                ", keywords='" + keywords + '\'' +
                ", catyDesc='" + catyDesc + '\'' +
                ", sortOrl=" + sortOrl +
                ", isShowInNav=" + isShowInNav +
                ", grade=" + grade +
                ", filterAttr='" + filterAttr + '\'' +
                ", isShow=" + isShow +
                ", isEnabled=" + isEnabled +
                ", createTime=" + createTime +
                ", createBy='" + createBy + '\'' +
                ", updateTime=" + updateTime +
                ", updateBy='" + updateBy + '\'' +
                '}';
    }

    public List<GoodsBrand> getBrandList() {
        return brandList;
    }

    public void setBrandList(List<GoodsBrand> brandList) {
        this.brandList = brandList;
    }

    public List<ParentCategory> getChildList() {
        return childList;
    }

    public void setChildList(List<ParentCategory> childList) {
        this.childList = childList;
    }


}